package com.ytc.service;

import com.ytc.model.Type;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-provider")
public interface TypeService {

    //柴晓颖：去新增书籍时查询书籍类型
    @RequestMapping("queryBookType")
    List<Type> queryBookType();

    //柴晓颖：查询小类型
    @RequestMapping("getSmallType")
    List<Type> getSmallType(@RequestParam("pid") Integer pid);

    //张阔：查询频道
    @RequestMapping("queryBigTypeList")
    List<Type> queryBigTypeList();

    //张阔：查询书籍类型
    @RequestMapping("querySmallTypeList")
    List<Type> querySmallTypeList(@RequestParam("pid") Integer pid);

}
